package net.longjin.parms;

import lombok.Data;
import net.longjin.entity.BaseCondition;
import net.longjin.utils.Phone;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * 描述:AdviseInfoParms
 *
 * @author 何志鹏
 * @ClassName:AdviseInfoParms
 * @create 2020-11-23 14:26
 * Version 1.0
 */
@Data
public class AdviseInfoParms  extends BaseCondition {
    /**
     * 主键
     */
    private String adviseId;

    /**
     * 用户名称
     */
    @NotEmpty(message = "用户名称不为空")
    @Length(max = 10, min = 2,message = "姓名长度限制2~10字符")
    private String userName;
    /**
     * 用户id
     */
    @NotEmpty(message = "用户不为空")
    @Length(max = 10, min = 2,message = "用户长度限制2~20字符")
    private String userId;
    /**
     * 内容
     */
    @NotEmpty(message = "内容不为空")
    @Length(max = 10, min = 2,message = "内容长度限制2~10字符")
    private String content;
    /**
     * 手机号码
     */
    @NotEmpty(message = "手机号码不为空")
    @Phone
    private String mobile;
}
